package com.liupei.auth.entity;

import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import java.util.Collection;

/**
 * @ClassNameSysUserInfo
 * @Description
 * @Author liupei
 * @Emaile 3268727800@qq.com
 * @Date2021/3/16 10:47
 * @Version V1.0
 **/
public class SysUserInfo extends User {
    private Long userId;
    public SysUserInfo(String username, String password, Collection<? extends GrantedAuthority> authorities) {
        super(username, password, authorities);
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
}
